package cn.itsource.pethome.org.mapper;

import cn.itsource.pethome.base.mapper.BaseMapper;
import cn.itsource.pethome.org.domain.Department;

import java.util.List;

public interface DepartmentMapper extends BaseMapper<Department> {

    /*查询一二级部门*/
    List<Department> findOneAndTwoLevel();

    //通过父id查询所有的子部门列表
    List<Department> findByParentId(Long id);
}
